<?php defined('IN_DESTOON') or exit('Access Denied');?><html>
<head>
    <title>招标分类</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="renderer" content="webkit">
    <style>
        .dialog-head {
            position: fixed;
            z-index: 999999;
            top: 0px;
        }
        .dialog-main {
            top: 50px;
        }
        .dialog-head > div:first-child {
            font-size: 16px !important;
        }
        button[name=subdqbtn] {
            padding: 7px 10px;
            background-color: #F4F4F9;
            color: #1d1d1d;
            font-size: 15px;
            margin-right: 10px;
            margin-bottom: 14px;
            height: 22px;
            border-radius: 3px;
            font-weight: 600;
            width: 71px;
        }
        .jy_yhxy {
            margin-bottom: 20px;
            display: table;
            position: fixed;
            z-index: 2000;
            left: 0px;
            right: 0px;
            bottom: 0px;
            width: 100%;
            text-align: center;
        }
        .dialog-main .btn.active {
		    background-color: #24C0D7;
		    color: #FFFFFF;
		}
    </style>
    <link href="static/weixinstyle.css?v=1603" rel="stylesheet">
    <script src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script src="static/js/jquery.js"></script>
    <script src="static/js/share.js?v=1601"></script>
    <script src="static/js/scope.js?v=1601"></script>
    <script src="/wxswordfish/jquery.resize.js"></script>
    <script>
        initShare(["wxd66e9589c9fecff6", "1482905764", "i3A92ryjVVxuZPBeFBvce1OcYbRzTPwl", "41a2a0bb22f5ebd14e6928b7d9a6575482b0d90e"], "", 2, "jy_extend", "", "");
    </script>
</head>
<body>
<div class="dialog-head">
    <div>招标分类</div>
    <div><span class="submit" id="spansubmit">确定</span></div>
</div>
<div style="display:block;" class="dialog scope-dialog " id="tender-scope">
    <div class="dialog-main ">
        <!--<div class="dialog-por">如果您只想接收某一个市的信息，可在关键词后面添加市名，比如“安防 深圳”。</div>-->
        <div class="dialog-content">
            <ul>
                <li>
                    <button class="btn active" name="btnall">全部</button>
                </li>
                <li>
                    <?php if(is_array($lists)) { foreach($lists as $v) { ?>
                    <button class="btn" style="width:21%;" name="btncatname" data-moduleid="<?php echo $v['catid'];?>"><?php echo $v['catname'];?></button>
                    <?php } } ?>
                </li>
            </ul>
        </div>
    </div>
</div>
<script>
    var _hmt = _hmt || [];
    (function () {
        var hm = document.createElement("script");
        hm.src = "/baiducc";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
        $('button[name=btncatname]').bind('click', function () {
            $('button[name=btnall]').removeClass('active');
            var active = $(this).hasClass('active');
            if (active) {
                $(this).removeClass('active');
            } else {
                $(this).addClass('active');
            }
        });
        $('button[name=btnall]').bind('click', function () {
            var active = $(this).hasClass('active');
            if (active) {
                $(this).removeClass('active');
            } else {
                $(this).addClass('active');
                $('button[name=btncatname]').removeClass('active');
            }
        });
        $('#spansubmit').bind('click', function () {
            var moduleids = [];
            $('button[name=btncatname].active').each(function (index, element) {
                var moduleid = $(element).data('moduleid');
                moduleids.push(moduleid);
            });
            var catids = -1;
            if (moduleids.length > 0) {
                catids = moduleids.join(',');
            }
            $.post('/mobile/weixinuser.php', {filtertender: catids}, function (data) {
                if (data == 1) {
                    location.href = '/mobile/zbdy.php'
                }
            });
        });
    })();
</script>
</body>
</html>
